import axios from './request'

// 获取分类列表
export const getCateAPI = (query) => axios.get('/goods/cate',{params:query})
// 获取分类列表不分页，作添加用
export const getCateAPINoPage = () => axios.get('/goods/cate')
// 添加分类
export const addCateAPI = (data) => axios.post('/goods/cate',data)
// 修改分类
export const editCateAPI = (id, categoryname) => axios.patch('/goods/cate/'+id, {categoryname})
// 删除分类
export const delCateAPI = (_id) => axios.delete('/goods/cate/'+_id)